﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Main.Master" AutoEventWireup="true" CodeBehind="TableAllocation.aspx.cs" Inherits="RestaurantManagerWebApp.Pages.TableManagement.TableAllocation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style26 {
            font-size: medium;
        }
        .auto-style34 {
            width: 286px;
        }
        .auto-style35 {
            font-size: medium;
            width: 286px;
        }
        .auto-style36 {
            width: 100%;
        }
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="auto-style3">
        <tr>
            <td class="auto-style26">
            <asp:Label ID="Label6" runat="server" Text="Table Management Menu"></asp:Label>
            </td>
            <td><span class="auto-style26"></span></td>
            <td class="auto-style34"></td>
            <td><span class="auto-style26"></span></td>
        </tr>
        <tr>
            <td class="auto-style26">
            <asp:Button ID="buttonManageTables" runat="server" OnClick="buttonManageTables_Click" Text="Manage Tables" />
            </td>
            <td class="auto-style27">
            <asp:Button ID="buttonAllocateTables" runat="server" OnClick="buttonAllocateTables_Click" Text="Allocate Tables" style="margin-left: 0px" />
            </td>
            <td class="auto-style35">&nbsp;</td>
            <td>
            <asp:Button ID="buttonReturn" runat="server" OnClick="buttonReturn_Click" Text="Return to Main Table Management" Width="269px" />
            </td>
        </tr>
        </table>
    <br />
<<<<<<< .mine
    <br />
    <table class="auto-style36">
=======
    <asp:Button ID="btnSwitch" runat="server" OnClick="btnSwitch_Click" Text="Switch View" Font-Bold="True" Font-Names="Calibri" Font-Size="13pt" Height="40px" Width="80px" />
    <br />
    <br />
    <br />
                        <asp:PlaceHolder ID="phAutoGenBtn" runat="server" ></asp:PlaceHolder>
                        <br />
    <br />
    <table class="auto-style36">
>>>>>>> .r89
        <tr>
            <td>
<<<<<<< .mine
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="allocateView" runat="server">
                        <asp:GridView ID="tableGridview" runat="server" AutoGenerateColumns="False" BackColor="#999999" DataKeyNames="table_no" DataSourceID="SqlDataSource1" OnDataBound="tableGridview_DataBound" OnRowDataBound="tableGridview_RowDataBound" OnSelectedIndexChanged="tableGridview_SelectedIndexChanged" Width="694px">
                            <Columns>
                                <asp:BoundField DataField="table_no" HeaderText="table_no" ReadOnly="True" SortExpression="table_no" />
                                <asp:BoundField DataField="status" HeaderText="status" SortExpression="status" />
                                <asp:BoundField DataField="capacity" HeaderText="capacity" SortExpression="capacity" />
                                <asp:BoundField DataField="t_category" HeaderText="t_category" SortExpression="t_category" />
                            </Columns>
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT table_no, status, capacity, t_category FROM Tables WHERE (status &lt;&gt; 'NIL') ORDER BY CAST(table_no AS decimal)"></asp:SqlDataSource>
                    </asp:View>
                </asp:MultiView>
=======
                <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                    <asp:View ID="allocateView" runat="server">
                        <br />
                        <br />
                        <br />
                        <br />
                    </asp:View>
                    <asp:View ID="overviewView" runat="server">
                        <asp:GridView ID="tableGridview" runat="server" AutoGenerateColumns="False" BackColor="#999999" DataKeyNames="table_no" DataSourceID="SqlDataSource1" OnDataBound="tableGridview_DataBound" OnRowDataBound="tableGridview_RowDataBound" OnSelectedIndexChanged="tableGridview_SelectedIndexChanged" Width="694px">
                            <Columns>
                                <asp:BoundField DataField="table_no" HeaderText="table_no" ReadOnly="True" SortExpression="table_no" />
                                <asp:BoundField DataField="status" HeaderText="status" SortExpression="status" />
                                <asp:BoundField DataField="capacity" HeaderText="capacity" SortExpression="capacity" />
                                <asp:BoundField DataField="t_category" HeaderText="t_category" SortExpression="t_category" />
                            </Columns>
                        </asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT table_no, status, capacity, t_category FROM Tables WHERE (status &lt;&gt; 'NIL') ORDER BY CAST(table_no AS decimal)"></asp:SqlDataSource>
                    </asp:View>
                </asp:MultiView>
>>>>>>> .r89
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
    </table>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
<br />
</asp:Content>
